/**
 * author      : dormi330
 * date        : 2018/6/24
 * project     : mybatis
 * description : TODO
 */

package com.deep.trade.infrastructure.mybatis.order;

import com.deep.trade.domain.order.TradeOrderHistory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface TradeOrderHistoryMapper {

    // 插入新数据
    void insert(@Param("eo") TradeOrderHistory eo);

    // ============= query ===============

    // 查询 OrderSummary 对应的 TradeOrder
    List<TradeOrderHistory> listByTradeOrder(
            @Param("tenantCode") String tenantCode,
            @Param("tradeOrderId") String tradeOrderId);

    // 根据id 查询单个 TradeOrder
    TradeOrderHistory findOneById(
            @Param("tenantCode") String tenantCode,
            @Param("id") String id);

}
